package com.car.service;

import com.car.dao.StoreDao;
import com.car.dao.impl.StoreDaoImpl;
import com.car.domain.Car;

import java.util.List;

public class StoreService {
    private static final StoreDao storeDao = new StoreDaoImpl();

    /**
     * 显示展示汽车
     *
     * @汽车
     */
    public List<Car> display(){
        try {
            return storeDao.display();
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
